/**
 * 链动会员关系图样式文件
 * 版本: 2.0
 * 更新时间: 2024-07-22
 */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

/* 主容器样式 */
.member-charts-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
    max-width: 1400px;
    border: 1px solid #e9ecef;
}

/* 头部样式 */
.charts-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    position: relative;
    border-bottom: 3px solid #5a67d8;
}

.charts-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

.charts-title::before {
    content: "🌐";
    margin-right: 10px;
    font-size: 22px;
}

.close-btn {
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 搜索区域样式 */
.search-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 25px 30px;
    border-bottom: 2px solid #dee2e6;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.search-label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 14px;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 15px;
    width: 180px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #0f6674);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* 面包屑导航样式 */
.breadcrumb-section {
    background: #fff;
    padding: 18px 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-item {
    color: #6c757d;
    display: flex;
    align-items: center;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-weight: bold;
    margin: 0 5px;
}

/* 图表内容区域 */
.charts-content {
    padding: 30px;
    min-height: 600px;
    background: #f8f9fa;
}

.charts-container {
    border: 3px solid #667eea;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.charts-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.empty-state-subtext {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .member-charts-container {
        margin: 15px;
        border-radius: 8px;
    }
    
    .charts-header {
        padding: 20px 25px;
    }
    
    .search-section {
        padding: 20px 25px;
    }
    
    .charts-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-input-group {
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .btn-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .charts-title {
        font-size: 18px;
    }
    
    .charts-header {
        padding: 18px 20px;
    }
    
    .search-section {
        padding: 18px 20px;
    }
    
    .charts-content {
        padding: 20px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .member-charts-container {
        margin: 10px;
        border-radius: 6px;
    }
    
    .search-input {
        width: 160px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .charts-content {
        padding: 15px;
        min-height: 400px;
    }
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
